package p1;

public class T05 {
    public static void main(String[] args) {
        System.out.println(sum(1));
        System.out.println(sum(1,2,3));
        System.out.println(sum(1,4,6,8,10));
        Integer a=10;


    }
    protected static int sum(int ...data){
        int s=0;
        for(int i:data)s+=i;
        return s;
    }
}

